export const filterAsyncRoutes = (asyncRoutes: any, routes: any) => {
    return  asyncRoutes.filter((item: any) => {
        if (routes.includes(item.name)) {
            if (item.children && item.children.length) {
               item.children = filterAsyncRoutes(item.children, routes)
            }
            return true
        }
    })
}
